<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>资管客户还款记录表 管理</title>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>
<body class="iframeBody">
<form id="insCstRepayLog_form">
    <div class="fieldset1 tabel_col tabel_col_1 clearFix">
        
<div class="fieldBox col_100">
	<div class="label">流水号</div>
	<div class="field">
		<input name="seqNo" id="seqNo" type="text" class="ui-textbox" value="${insCstRepayLogVO.seqNo}" validate="{required:true,maxlength:64}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">交易时间</div>
	<div class="field">
		<input name="payTm" id="payTm" type="text" class="ui-textbox" value="${insCstRepayLogVO.payTm}" validate="{required:true,maxlength:0}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">资方合同号业务编号</div>
	<div class="field">
		<input name="insBizNo" id="insBizNo" type="text" class="ui-textbox" value="${insCstRepayLogVO.insBizNo}" validate="{required:true,maxlength:64}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">资管机构ID</div>
	<div class="field">
		<input name="insId" id="insId" type="text" class="ui-textbox" value="${insCstRepayLogVO.insId}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">资管机构代码</div>
	<div class="field">
		<input name="insCode" id="insCode" type="text" class="ui-textbox" value="${insCstRepayLogVO.insCode}" validate="{required:true,maxlength:30}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">资管机构名称</div>
	<div class="field">
		<input name="insNm" id="insNm" type="text" class="ui-textbox" value="${insCstRepayLogVO.insNm}" validate="{required:true,maxlength:100}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">项目ID</div>
	<div class="field">
		<input name="prjId" id="prjId" type="text" class="ui-textbox" value="${insCstRepayLogVO.prjId}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">合同号</div>
	<div class="field">
		<input name="lsCntNo" id="lsCntNo" type="text" class="ui-textbox" value="${insCstRepayLogVO.lsCntNo}" validate="{required:true,maxlength:30}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">资方支付表ID</div>
	<div class="field">
		<input name="paySchId" id="paySchId" type="text" class="ui-textbox" value="${insCstRepayLogVO.paySchId}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">资方支付表号</div>
	<div class="field">
		<input name="paySchNo" id="paySchNo" type="text" class="ui-textbox" value="${insCstRepayLogVO.paySchNo}" validate="{required:true,maxlength:30}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">期数</div>
	<div class="field">
		<input name="payPd" id="payPd" type="text" class="ui-textbox" value="${insCstRepayLogVO.payPd}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">还款金额(分)</div>
	<div class="field">
		<input name="payAmt" id="payAmt" type="text" class="ui-textbox" value="${insCstRepayLogVO.payAmt}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">本金(分)</div>
	<div class="field">
		<input name="capAmt" id="capAmt" type="text" class="ui-textbox" value="${insCstRepayLogVO.capAmt}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">利息(分)</div>
	<div class="field">
		<input name="intrAmt" id="intrAmt" type="text" class="ui-textbox" value="${insCstRepayLogVO.intrAmt}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">罚息(分)</div>
	<div class="field">
		<input name="pntAmt" id="pntAmt" type="text" class="ui-textbox" value="${insCstRepayLogVO.pntAmt}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">其他费用1(分)</div>
	<div class="field">
		<input name="othFeeAmt" id="othFeeAmt" type="text" class="ui-textbox" value="${insCstRepayLogVO.othFeeAmt}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">其他费用2(分)</div>
	<div class="field">
		<input name="othFeeAmt2" id="othFeeAmt2" type="text" class="ui-textbox" value="${insCstRepayLogVO.othFeeAmt2}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">还款类型CAP0069   0.还款 1.客户正常结清 2.客户提前结清 3.逾期强制结清 4.未抵押强制结清 5.我司赎回结清</div>
	<div class="field">
		<select name="payTypCd" id="payTypCd" data-value="${insCstRepayLogVO.payTypCd}" validate="{required:true,select:true}">
	<option value=" ">璇烽�夋嫨</option>
	<c:forEach items="${payTypCdList}" var="item">
		<option value="${item.code }">${item.codeNm }</option>
	</c:forEach>
		</select>
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">还款描述信息</div>
	<div class="field">
		<textarea name="payRem" id="payRem" type="text" class="ui-textbox" cols="25" rows="4" value="${insCstRepayLogVO.payRem}" validate="{required:false,maxlength:200}">${insCstRepayLogVO.payRem}</textarea>
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">还款户名</div>
	<div class="field">
		<input name="payAccNm" id="payAccNm" type="text" class="ui-textbox" value="${insCstRepayLogVO.payAccNm}" validate="{required:true,maxlength:100}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">还款账号</div>
	<div class="field">
		<input name="payAccNo" id="payAccNo" type="text" class="ui-textbox" value="${insCstRepayLogVO.payAccNo}" validate="{required:true,maxlength:30}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">版本</div>
	<div class="field">
		<input name="version" id="version" type="text" class="ui-textbox" value="${insCstRepayLogVO.version}" validate="{required:true,number:true}">
		<span class="requiredSymbol">*</span>
	</div>
</div>
    </div>
    <div class="btnsBox">
        <span id="saveInsCstRepayLog_Btn" class="sq-button sq-button-hasicon l-dialog-btn-ok">
        <i class="sqBtnIco_10"></i>保存</span>
        <input type="reset" id="resetBtn" class="l-button l-button-reset Hide">
    </div>
</form>
<script>
    $(function() {
        var insCstRepayLogId = "${insCstRepayLogVO.id}";//主键ID
        $("#insCstRepayLog_form").ligerForm({
            validate: true
        });
        /*保存*/
        $("#saveInsCstRepayLog_Btn").click(function (event) {
            var form = liger.get("insCstRepayLog_form");
            if (!form.valid()) {
                $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO, SQ_type: "warning"});
                return false; //验证不通过，不执行以下代码
            }
            var data = form.getData();
            $.ligerDialog.hide();
            var _url;
            if (insCstRepayLogId == '') {//新增
                _url = '<%=path%>/repay/insCstRepayLog/add.do';
            } else {//修改
                _url = '<%=path%>/repay/insCstRepayLog/modify.do?id=' + insCstRepayLogId;
            }
            var wait_dialog;
            $.ajax({
                type: 'post',
                dataType: 'json',
                data: data,
                url: _url,
                beforeSend: function () {
                    wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
                },
                success: function (msg) {
                    wait_dialog.close();
                    if (msg.success == 1) {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "success"});
                        parent.$("#clearBtn").click();
                        parent.$("#searchBtn").click();
                        frameElement.dialog.close();
                        
                        //$("#resetBtn").click();
                        //回调刷新列表
                        //var callback=frameElement.W2W.callback;
                        //Remove_navTab();
                        //callback();
                    } else {
                        $.ligerDialog.SQalert({content: msg.info, SQ_type: "error"});
                    }
                }
            });
        });
    });
</script>
</body>
</html>
